/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jps.model;

/**
 *
 * @author calyja
 */
public class Track {

    public Album getAlbum() {
        return album;
    }

    public void setAlbum(Album album) {
        this.album = album;
        this.artist = album.getArtist();
        this.album.addTrack(this);
    }

    public Artist getArtist() {
        return artist;
    }

    public void setArtist(Artist artist) {
        this.artist = artist;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
        
    public Artist artist = null;
    public Album album = null;
    public String name;
    
}
